]> dgit.raspbian.org Git - gnome-shell.git/commit
StButton: fix handling of Space/Enter -> click
authorDan Winship <danw@gnome.org>
Mon, 21 Mar 2011 12:21:18 +0000 (08:21 -0400)
committerDan Winship <danw@gnome.org>
Mon, 21 Mar 2011 14:18:46 +0000 (10:18 -0400)
commite886a3d8914b99ba70da3800a76927ab9020fe26
tree0ad2d7f8f26856c1bf53b1cfee2ce487e1439860
parent0eaf141ae4595d862ca1c68097ac1253bac18fce
StButton: fix handling of Space/Enter -> click

StButton was mistakenly considering any Space/Enter KEY_RELEASE to be
a click, when in fact it should only count as a click if it also got
the corresponding KEY_PRESS as well. This meant that when typing in a
chat notification, any Space/Enter keypress would dismiss the
notification, since the StEntry would take the PRESS event but ignore
the RELEASE, allowing it to propagate to the notification itself,
which would treat it as a click.

https://bugzilla.gnome.org/show_bug.cgi?id=645243
src/st/st-button.c